#!/usr/bin/env python2.7
#-*-coding:utf-8-*-

def add(a,b):
	print "adding:%d+%d"%(a,b)
	return a+b

def substract(a,b):
	print "substracting:%d-%d"%(a,b)
	return a-b

def multiply(a,b):
	print "multiplying:%d*%d"%(a,b)
	return a*b

def divide(a,b):
	print "deviding:%d/%d"%(a,b)
	return a/b

print "let's do some math with function"

age=add(30,5)
height=substract(185,5)
weight=multiply(65,2)
iq=divide(200,2)

print "age:%d,height:%d,weight:%d,iq:%d"%(age,height,weight,iq)
print "here is a puzzle"
what=add(age,substract(height,multiply(weight,divide(iq,2))))
print "what is %d:"%what
 
